Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config parsing rough initial idea #1

Merged
merged 27 commits into from
Nov 2, 2023
Merged

Config parsing rough initial idea #1

merged 27 commits into from
Nov 2, 2023

Conversation

aidanCQ
Copy link
Collaborator

@aidanCQ aidanCQ commented Oct 20, 2023

No description provided.

@aidanCQ aidanCQ changed the title Initialize poetry. Config parsing rough initial idea Oct 20, 2023
@vanyae-cqc
Copy link
Collaborator

Small refactor of the auth logic, happy to discuss tomorrow

@@ -1,3 +1,2 @@
CONFIG_FILE_NAME = ".env.qnx"
ACCESS_TOKEN_FILE_PATH = ".qnx/auth/access_token"
REFRESH_TOKEN_FILE_PATH = ".qnx/auth/refresh_token"
TOKEN_FILE_PATH = ".qnx/auth"
Copy link
Collaborator Author

@aidanCQ aidanCQ Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've kept these separate so that we can point to the jupyter hub refresh token in the pod separately from the access token.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can discuss later today and refactor back by all means - have you thought at all about how we could supportXDG_CONFIG_HOME as a valid config dir? Plenty of linux users like using this but not sure how well it would gel

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 . Nope, I wasn't aware of this as an option. I've just defaulted to the home directory.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could check if it is set and use it instead of the home directory.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have made an issue for it: #2

Possibly don't need to address it in this PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks like we could directly copy and paste that 😛

Copy link
Collaborator

@vanyae-cqc vanyae-cqc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey I'm happy to merge this for now to get the repo going? Can always format/test after the demo on Tuesday

@aidanCQ aidanCQ merged commit 441ec9d into main Nov 2, 2023
@vanyae-cqc vanyae-cqc deleted the initialize-poetry branch December 4, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants